<div id="main" role="main">
		<div class="tab-content tab-addtabs">
			<div id="content">
				<div class="row">
					<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
						 <div class="content">
							<form class="layui-form" >
									<div class="layui-form-item">
										<label class="layui-form-label">
											用户名
										</label>
										<div class="layui-input-block">
											<input type="text" class="layui-input" id="user" placeholder="用户名" value="{$admin_data.m_user}">
										</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">
											密码
										</label>
										<div class="layui-input-block">
											<input type="text" class="layui-input" id="pwd" placeholder="密码">
										</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">
											手机号
										</label>
										<div class="layui-input-block">
											<input type="text" class="layui-input" id="phone" placeholder="手机号" value="{$admin_data.m_phone}">
										</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">
											真实姓名
										</label>
										<div class="layui-input-block">
											<input type="text" class="layui-input" id="nice" placeholder="真实姓名" value="{$admin_data.m_nice}">
										</div>
									</div>

							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
		
<script>
layui.use(['form','layer'], function(){
	var layer = layui.layer,form = layui.form;
});

function doSubimt() {
	var res;
	var user        = $('#user').val();
	var pwd         = $('#pwd').val();
	var phone       = $('#phone').val();
	var nice        = $('#nice').val();
	var data        = {'user':user,'pwd':pwd,'phone':phone,'nice':nice,};

	if (user == '') {
		$.thinkmimi({Content : '用户名不能为空！', Type:2, Align:'right', OutTime:2000});return false;
	}
	if (nice == '') {
		$.thinkmimi({Content : '真实姓名不能为空！', Type:2, Align:'right', OutTime:2000});return false;
	}

	$.ajax({
		type: 'post',
		data: data,
		async: false,
		url: "{:url('profile')}",
		success: function(data) {
			var array = eval('('+data+')');
			res = array;
			if (array['code'] == '01') {
				$.thinkmimi({Content : array['msg'], Type:2, Align:'right', OutTime:2000});
				res = false;
			}
		}
	});

	return res;
}
</script>